Skip to content

Commit

Permalink
Update the description in example.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Mazztok45 authored Feb 2, 2024
1 parent 84d6204 commit a69e7b6
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions src/xslt/example.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
origin xml
This XML code block is an example of file we process.

```xml
<root>
<result>
<biographic_references/>
Expand All @@ -14,11 +15,11 @@ origin xml
</contributors>
</result>
</root>
```

With the XSLT code block below, we can transform the upper XML block into a new XML file.

XSLT file


```xslt
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:foo="http://www.foo.org/" xmlns:bar="http://www.bar.org">
<xsl:template match="/">
Expand All @@ -34,4 +35,15 @@ XSLT file
</oai_zb_preview>
</xsl:template>
</xsl:stylesheet>
```
This transformation outputs the result below.
```xml
<oai_zb_preview xmlns:foo="http://www.foo.org/" xmlns:bar="http://www.bar.org">
<author>Maynard, James</author>
<author_ids>
<author_id>maynard.james</author_id>
</author_ids>
</oai_zb_preview>
```


0 comments on commit a69e7b6

Please sign in to comment.