Skip to content

Commit

Permalink
Merge pull request #29 from danishmalik-maplesoftwares/fix_issue_26_n_28
Browse files Browse the repository at this point in the history
Minor Changes -
  • Loading branch information
Mike Bevz committed May 16, 2013
2 parents 01cd9f7 + 98ec28a commit 098392b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/com/mikebevz/xsd2php/Xsd2Php.php
Expand Up @@ -57,7 +57,7 @@ class Xsd2Php extends Common
* Show debug info
* @var boolean
*/
public $debug = false;
public $debug = true;

/**
* Namespaces = array (className => namespace ), used in dirs/files generation
Expand Down Expand Up @@ -367,12 +367,12 @@ public function loadIncludes($dom, $filepath = '', $namespace = '') {
$parent->removeChild($entry);
}

$xpath = new \DOMXPath($dom);
/* $xpath = new \DOMXPath($dom);
$query = "//*[local-name()='include' and namespace-uri()='http://www.w3.org/2001/XMLSchema']";
$includes = $xpath->query($query);
if ($includes->length != 0) {
$dom = $this->loadIncludes($dom);
}
} */

if ($this->debug) print_r("\n------------------------------------\n");

Expand Down
4 changes: 2 additions & 2 deletions src/com/mikebevz/xsd2php/xsd2php2.xsl
Expand Up @@ -13,12 +13,12 @@
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:exslt="http://exslt.org/common">

<xsl:variable name="targetNamespace" select="@targetNamespace" />

<xsl:template
match="//*[local-name()='schema' and namespace-uri()='http://www.w3.org/2001/XMLSchema']">

<xsl:variable name="targetNamespace" select="@targetNamespace" />

<!-- Generate classes for each element with data type as extention -->
<xsdschema>
<classes>
Expand Down

0 comments on commit 098392b

Please sign in to comment.